<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">  
    <meta name = "format-detection" content = "telephone=no"> 
    <title>失效礼券</title>
    <link rel="stylesheet" href="/Public/Home/css/coupon.css?v=20170322002">
    <style>
        body{background:#fff;}
    </style>
    <!--不识别数字为手机-->
<meta name="format-detection" content="telephone=no, email=no"/>
<!--通用js-->
<?php if(isset($signPackage) && !empty($signPackage)){ ?>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?v=201704270010"></script>
<?php } ?>
<script type="text/javascript" src="/Public/Home/js/require.js"></script>
<script type="text/javascript" src="/Public/Home/js/baseLoading.js?v=201705240001"></script>
<script src="/Public/Home/js/jquery.min.js" ></script>
<script src="/Public/Home/js/pincode-input.js" ></script>
<script src="/Public/Home/js/parabola.js" ></script>
<script src="/Public/Home/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript">
    _global.isLogin = !!"<?php echo $wx_member_id; ?>";
	var isWxShareDiy = typeof yc_share_diy === "undefined" ? false : yc_share_diy;
	var yc_wx_shareImgPath = "";
	<?php if(isset($weixin_logo) && !empty($weixin_logo)){ ?>
		yc_wx_shareImgPath = "/Uploads/<?php echo ($weixin_logo["image"]); ?>";
	<?php } ?>
    var yc_pass_arr = {'local_id':"<?php echo I('local_id',1);?>",'top_local_id':"<?php echo I('top_local_id',1);?>"};
	if(parseInt(yc_pass_arr["local_id"]) == 21){
		_global.isStopSell = true;
	}
    <?php if(isset($signPackage) && !empty($signPackage)){ ?>
        _global.isWeiXinLoad = true;
        var isEnableLocation = typeof yc_wx_location === "undefined" ? false : yc_wx_location;
        var yc_wx_options = {
            "enableLocation" : isEnableLocation,
            "refuseCallback" : function(){},
            "mapCallback" : function(){},
            "config" : {
                debug: false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: '<?php echo $signPackage["timestamp"];?>',
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi'
                ]
            }
        };
        var isInHeader = typeof yc_wx_useInHeader === "undefined" ? true : yc_wx_useInHeader;
        if(isInHeader){
            wxAutoConfig(yc_wx_options);
        }
    <?php } ?>
</script>
</head>
<body>
    <div class="coupon-box">
        <?php if($count > 0): ?><div class="coupon-des">
                <h4>有<label><?php echo ($count); ?></label>失效礼券</h4>
                <h4></h4>
            </div><?php endif; ?>
        <div id="ajax-couponlist" class="coupon-list"></div>
        <div class="progress-loader" style="display:none;">
            <a href="javascript:;" class="btn btn-second btn-block  btn-coupon-more">加载更多&gt;&gt;</a>
        </div>
        <div id="yc_sx_empty" class="empty-box" style="display:none;">
            <img src="/Public/Home/images/iconEmptyCoupon.png" alt="">
            <p>您没有失效的礼券~</p>
            <p><a href="javascript:;" onclick="window.location.href=document.referrer;" style="color:#5c6160;font-size:14px;" >返回上一页</a></p>
        </div>
    </div>
    <?php if($count > 0): ?><div class="delete-fail-coupon">
            <a href="javascript:void(0);">清除失效礼券</a>
        </div><?php endif; ?>
    <script type="text/javascript">
		require(['member/couponFail']);
	</script>
</body>
</html>